home *** CD-ROM | disk | FTP | other *** search
- Path: fac4069154.law.duke.edu!graham
- From: graham@faculty.law.duke.edu
- Newsgroups: comp.lang.c++
- Subject: Opening Win '95/NT filenames in MSVC++ 4.0 -- Problems
- Date: Mon, 18 Mar 1996 10:21:03
- Organization: Duke University School of Law
- Message-ID: <graham.3.000A5A2A@faculty.law.duke.edu>
- NNTP-Posting-Host: fac4069154.law.duke.edu
- Summary: I can't open files with long names
- X-Newsreader: Trumpet for Windows [Version 1.0 Rev A]
-
- I am trying to execute the following line of code on my Win95 machine. I'm
- using MSVC++ 4.0, and I've compiled it as an MS-DOS, Quick-Win, and
- Windows application. (The compiler and AppWizard do not present me with a
- "console application" option.)
-
- if (_access ("C:\\work\\lawsnews.html", 0) < 0) {
-
- The preceding call to _access always returns less than 0--despite the fact
- that I know the file exists. Short filenames (MS-DOS filenames) work fine:
-
- if (_access ("C:\\work\\will.wrk", 0) < 0) {
-
- I can't open or verify the existence of files with non-MS-DOS names. Could
- anyone redirect my wayward steps? Many thanks!!
-
- Tony Graham
- graham@faculty.law.duke.edu
-